package com.lt.integration.qywx.constant;

/**
 * 企业微信URL常量
 * @ author     :  Dragon
 * @ Created in :  2022年04月26日 09:42
 */
public class QyUrlConstant {

    /**
     * 获取suite_token地址URL
     */
    public final static String WX_SUITE_TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_suite_token";

    /**
     * 获取access_token地址URL
     */
    public final static String WX_ACCESS_TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=CORPID&corpsecret=CORPSECRET";

    /**
     * 获取访问用户身份URL
     */
    public final static String WX_USERID_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/getuserinfo3rd?suite_access_token=SUITE_ACCESS_TOKEN&code=CODE";
    /**
     * 获取成员URL
     */
    public final static String WX_USERINFO_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&userid=USERID";
    /**
     * 获取code地址URL
     */
    public final static String CODE_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";
    /**
     * 获取企业永久授权URL
     */
    public final static String AUTHORIZE_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_login_info?access_token=PROVIDER_ACCESS_TOKEN";
    /**
     * 获取服务商的token URL
     */
    public final static String PROVIDER_TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_provider_token";
    /**
     * 获取登录用户信息URL
     */
    public final static String USERINFO_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_login_info?access_token=PROVIDER_ACCESS_TOKEN";
    /**
     * 获取企业的jsapi_ticket URL
     */
    public final static String JSAPI_TICKET_URL = "https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket?access_token=ACCESS_TOKEN";
    /**
     * 获取应用的jsapi_ticket URL
     */
    public final static String APPLICATION_JSAPI_TICKET_URL = "https://qyapi.weixin.qq.com/cgi-bin/ticket/get?access_token=ACCESS_TOKEN&type=agent_config";
    /**
     * 获取发送应用消息URL
     */
    public final static String APPLICATION_MESSAGE_SEND_URL = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN";

    /**
     * 获取永久授权码URL
     */
    public final static String PERMANENT_CODE_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_permanent_code?suite_access_token=SUITE_ACCESS_TOKEN";
    /**
     * 获取企业accessToken URL
     */
    public final static String CORP_TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_corp_token?suite_access_token=SUITE_ACCESS_TOKEN";
    /**
     * 获取企业授权信息URL
     */
    public final static String AUTH_INFO_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_auth_info?suite_access_token=SUITE_ACCESS_TOKEN";
    /**
     * 获取手机号获取userid URL
     */
    public final static String USER_ID_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserid?access_token=ACCESS_TOKEN";
    /**
     * 获取userid转换URL
     */
    public final static String USERID_TO_OPENUSERID_URL = "https://qyapi.weixin.qq.com/cgi-bin/batch/USERID_TO_OPENUSERID?access_token=ACCESS_TOKEN";

    /**
     * 获取部门列表URL
     */
    public final static String DEPARTMENT_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=ACCESS_TOKEN&id=ID";

    /**
     * 获取部门成员详情列表URL
     */
    public final static String DEPARTMENT_USER_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/list?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID&fetch_child=FETCH_CHILD";

    /**
     * 获取员工打卡规则URL
     */
    public final static String CHECKINOPTION_URL = "https://qyapi.weixin.qq.com/cgi-bin/checkin/getcheckinoption?access_token=ACCESS_TOKEN";

}
